From 8eebcbc3a01282c43de44ca5b3d47290d09a6ac7 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sat, 20 Mar 2004 14:07:56 +0000 Subject: [PATCH] extra debugging info --- includes/Database.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/Database.php b/includes/Database.php index 99422a3fd4..d31a7b1840 100644 --- a/includes/Database.php +++ b/includes/Database.php @@ -185,7 +185,11 @@ class Database { return $ret; } - function freeResult( $res ) { mysql_free_result( $res ); } + function freeResult( $res ) { + if ( !@mysql_free_result( $res ) ) { + wfDebugDieBacktrace( "Unable to free MySQL result\n" ); + } + } function fetchObject( $res ) { @$row = mysql_fetch_object( $res ); # FIXME: HACK HACK HACK HACK debug -- 2.20.1